package org.dromara.apartment.domain.vo;

import org.dromara.apartment.domain.GraphInfo;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 图片信息视图对象 graph_info
 *
 * @author ckj
 * @date 2025-06-19
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = GraphInfo.class)
public class GraphInfoVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 图片id
     */
    @ExcelProperty(value = "图片id")
    private Long id;

    /**
     * 图片名称
     */
    @ExcelProperty(value = "图片名称")
    private String name;

    /**
     * 图片所属对象类型（1:apartment,2:room）
     */
    @ExcelProperty(value = "图片所属对象类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=:apartment,2:room")
    private Integer itemType;

    /**
     * 图片所有对象id
     */
    @ExcelProperty(value = "图片所有对象id")
    private Long itemId;

    /**
     * 图片地址
     */
    @ExcelProperty(value = "图片地址")
    private String url;


}
